package ooday04;

public class PolymorphicDemo {
    public static void main(String[] args) {
        Dog a2 = new Dog("小白",1,"白");
        a2.lookHome();

        Animal a1 = new Dog("小黑",2,"黑");
        a1.eat();

        Swim a3 = new Dog("小黑",3,"黑");
        a3.swim();
    }
}
